package com.constructor;

/**
 * Time    : 2023/3/19 15:32
 * Author  : 王摇摆
 * FileName: Main.java
 * Software: IntelliJ IDEA 2020.2.2
 * Blog    ：https://blog.csdn.net/weixin_44943389?type=blog
 */

public class Main {
    public static void main(String[] args) {
        Son son = new Son("父亲","孩子");
        System.out.println(son.getFatherName());
        System.out.println(son.getSonName());
    }
}
